package com.litblue.api.client;


import com.litblue.api.fallback.GetArtWorkClientFallbackFactory;
import com.litblue.api.fallback.GetUserInfoClientFallbackFactory;
import com.litblue.starter.pojo.user.domian.LitUserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service",fallbackFactory = GetUserInfoClientFallbackFactory.class)

public interface GetUserInfoClient {

    @PostMapping("/user/info/queryUserInfo")
//    加@RequestParam不然报错
    LitUserInfo queryUserInfo(@RequestParam Long id);
}
